package com.nmsl.system.surcharge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.system.surcharge.mapper.SurchargeMapper;
import com.nmsl.system.surcharge.domain.Surcharge;
import com.nmsl.system.surcharge.service.ISurchargeService;

/**
 * 附加费用Service业务层处理
 * 
 * @author gmh
 * @date 2025-02-17
 */
@Service
public class SurchargeServiceImpl implements ISurchargeService 
{
    @Autowired
    private SurchargeMapper surchargeMapper;

    /**
     * 查询附加费用
     * 
     * @param id 附加费用主键
     * @return 附加费用
     */
    @Override
    public Surcharge selectSurchargeById(Long id)
    {
        return surchargeMapper.selectSurchargeById(id);
    }

    /**
     * 查询附加费用列表
     * 
     * @param surcharge 附加费用
     * @return 附加费用
     */
    @Override
    public List<Surcharge> selectSurchargeList(Surcharge surcharge)
    {
        return surchargeMapper.selectSurchargeList(surcharge);
    }

    /**
     * 新增附加费用
     * 
     * @param surcharge 附加费用
     * @return 结果
     */
    @Override
    public int insertSurcharge(Surcharge surcharge)
    {
        return surchargeMapper.insertSurcharge(surcharge);
    }

    /**
     * 修改附加费用
     * 
     * @param surcharge 附加费用
     * @return 结果
     */
    @Override
    public int updateSurcharge(Surcharge surcharge)
    {
        return surchargeMapper.updateSurcharge(surcharge);
    }

    /**
     * 批量删除附加费用
     * 
     * @param ids 需要删除的附加费用主键
     * @return 结果
     */
    @Override
    public int deleteSurchargeByIds(Long[] ids)
    {
        return surchargeMapper.deleteSurchargeByIds(ids);
    }

    /**
     * 删除附加费用信息
     * 
     * @param id 附加费用主键
     * @return 结果
     */
    @Override
    public int deleteSurchargeById(Long id)
    {
        return surchargeMapper.deleteSurchargeById(id);
    }
}
